-
Notifications
You must be signed in to change notification settings - Fork 269
fix(deps): update module github.com/open-policy-agent/opa to v1.9.0 #4842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ℹ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
3331439 to
1354c63
Compare
|
This PR currently has a merge conflict. Please resolve this and then re-add the |
74f9423 to
b28c9d9
Compare
b28c9d9 to
1cfed41
Compare
a477106 to
635e0c8
Compare
|
This PR currently has a merge conflict. Please resolve this and then re-add the |
7a4befd to
3161b56
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4842 +/- ##
=======================================
Coverage 65.53% 65.53%
=======================================
Files 172 172
Lines 14308 14308
=======================================
Hits 9377 9377
Misses 4256 4256
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bdcebaf to
3cd4c12
Compare
3cd4c12 to
29eec38
Compare
This PR contains the following updates:
v1.8.0->v1.9.0Release Notes
open-policy-agent/opa (github.com/open-policy-agent/opa)
v1.9.0Compare Source
This release contains a mix of new features, performance improvements, and bugfixes. Notably:
Compile Rego Queries Into SQL Filters (#7887)
Compile API extensions with support for SQL filter generation previously exclusive to EOPA has been ported into OPA.
Example
With OPA running with this policy, we'll compile the query
data.filters.includeinto SQL filters:Example Request
{ "input": { "favorite": "pineapple" } }Example Response
{ "result": { "query": "WHERE fruits.name = E'pineapple'" } }See the documentation for more details.
Authored by @srenatus and @philipaconrad
Improved Rule Indexing For "Naked" Refs (#7897)
OPA's rule indexer is a means by which OPA can optimize evaluation performance.
Briefly, the indexer can in some cases determine that a rule won't successfully evaluate before it's evaluated based on the query input.
The indexer previously only considered terms in certain compound expressions, ignoring single terms; e.g. an expression containing a sole "naked" ref. This has now changed!
Example
Given a policy with an
allowrule containing two "naked" refs:input.fooandinput.bar:and the input document:
{ "foo": 1 }before this improvement, when evaluating the query
data.example.allow, we get the trace log:Here, we can see that the
allowrule is evaluated, but fails on theinput.barexpression, as it's referencing anundefinedvalue.With the improvement to the indexer, we instead get:
Where we can see that the
allowrule was never evaluated, since the input doesn't meet the conditions established by the indexer; i.e. bothinput.fooandinput.barmust havedefinedvalues.Authored by @srenatus
Runtime, Tooling
opa runwhen loading bundles in watch-mode (--watch) (#7870) authored by @sspaink reported by @johanfyllingCompiler, Topdown and Rego
numbers.range_stepbuilt-in error message (#7882) authored by @charlieegan3Docs, Website
everyandnotexamples (#7901) authored by @charlieegan3io.jwtandtimebuilt-ins (#7892) authored by @charlieegan3regexandstringbuilt-ins (#7890) authored by @charlieegan3Miscellaneous
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.